package sameClasses;

import java.io.Serializable;

public class UserPlugin implements Serializable {
	User user;
	private EncryptedData plugindata;
	int pluginid;

	public UserPlugin(User user, EncryptedData data, int pluginid) {
		this.user = user;
		this.plugindata = data;
		this.pluginid = pluginid;
	}

	public EncryptedData getPlugindata() {
		return this.plugindata;
	}

	@Override
	public boolean equals(Object obj) {
		if (this.user.equals(((UserPlugin) obj).user)
				&& this.pluginid == ((UserPlugin) obj).pluginid) {
			return true;
		}
		return false;
	}
}
